package com.spc.demo.listener;

import com.spc.demo.event.EventA;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Service;

/**
 * @author pingchao.su
 * @date 2022/6/25 21:15
 */
@Service
public class EventA_ListenerB implements ApplicationListener<EventA> {
    @Override
    public void onApplicationEvent(EventA eventA) {
        System.out.println("EventA_ListenerB成功监听");
    }
}
